package com.hmj.excel.frame;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class ExcelWindowAdapter extends WindowAdapter{
    @Override
    public void windowOpened(WindowEvent e) {
        super.windowOpened(e);
        System.out.println("windowOpened");
    }

    @Override
    public void windowClosing(WindowEvent e) {
        super.windowClosing(e);
        System.out.println("windowClosing");
        System.exit(0);
    }

    @Override
    public void windowActivated(WindowEvent e) {
        super.windowActivated(e);
        System.out.println("windowActivated");
    }
}
